package com.example.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Love {
   private String url;
   @TableId(type = IdType.AUTO)
   private Long id;
   private String ip;
   private String time;
   private String content;

   public Love(String url, String content, String ipAddress) {
      this.content = content;
      this.url = url;
      this.ip = ipAddress;
   }
}
